﻿@model IEnumerable<AvaliacaoOnline.Data.Avaliacao>
           

<script type="text/javascript">
    $(function () {
        @foreach(int id in (List<Int32>)ViewData["AvaliacoesUsuario"]){
            <text>$(".checkAvaliacao[value='@id']").attr("checked", true);</text>
        }
    });
</script>

@foreach (AvaliacaoOnline.Data.Avaliacao item in Model)
{
    <div class="span-1">
        <input type="checkbox" class="checkAvaliacao" value="@item.Id" name="Avaliacoes" id='Avaliacao-@item.Id' />
        <input type="hidden" value="@item.Id" name="AvaliacoesOriginais"/>
    </div>
    <div class="span-16 last">
        <label for="Avaliacao-@item.Id" style="font-weight:normal;">@item.Titulo</label>
    </div>
    <div class="clear"></div>
}